package xu.com.openfeign.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xu.com.openfeign.clients.UserFeignClient;

@RestController
@RequestMapping("/openfeign")
public class OpenFeignController {

    @Autowired
    private UserFeignClient feignClient;

    @GetMapping("/test")
    public String test(String name) {
        return feignClient.hello(name);
    }
}
